Organization: University of Michigan Engineering, Ann Arbor
Distribution: world
Message-ID: <4f6lgd$smq@srvr1.engin.umich.edu>
NNTP-Posting-Host: jykim@cobalt.engin.umich.edu
Originator: jykim@cobalt.engin.umich.edu
Hi. I'm kind of a beginner in C programming.
I'm trying to write a C program on SPARC under SunOS.
My problem is, it doesn't seem that I can use math functions that deal with floating point variables. For example, if I try to run following code, I get a error message.
#include <stdio.h>
#include <math.h>
main()
{
float a,b;
b = fabs(a);
printf("%f",b);
}
Could you tell me why? Or solution?
Thanks for reading this. Please e-mail me the solution.